﻿using Microsoft.EntityFrameworkCore;
using webapi.Model;

namespace webapi.Helper
{
    public class DbContextHelper : DbContext
    {
        public DbSet<UserAllModel> Users { get; set; } 
        public DbSet<UserInfoModel> UserInfo { get; set; } 
        public DbSet<UserAllLoginTmpModel> UserLoginTmp { get; set; }

        public DbSet<ProductAllModel> Product { get; set; }

        public DbSet<ProductInfoModel> ProductInfo { get; set; }

        public DbSet<ProductDetailModel> ProductDetail { get; set; }

        public DbSet<CartModel> CartModel { get; set; }

        public DbSet<OrderAllModel> OrderAllModel { get; set; }

        public DbSet<OrderInfoModel> OrderInfoModel { get; set; }

        public DbSet<UserGroupModel> UserGroupModel { get; set; }

        public DbSet<OrderTrackingNumberModel> OrderTrackingNumberModel { get; set; }

        public DbSet<EmailVerifyTmpModel> EmailVerifyTmpModels { get; set; }

        public DbContextHelper(DbContextOptions<DbContextHelper> options)
            : base(options)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            // 可以在这里配置模型（如果需要）  
        }
    }
}
